<?php
!defined('P_W') && exit('Forbidden');

class PW_TypeDataPost {
	function getData($config) {
		$fid = $this->_getFidByHid($config['hid']);
		$num = (int)$config['num'] ? (int) $config['num'] : 10;
		return $this->_getDate($fid,$num);
	}
	
	function _getDate($fid,$num) {
		$element = L::loadClass('element');
		$result = $element->newReply($fid,$num);
		return $result;
	}
	
	function _getFidByHid($hid) {
		return $hid;
	}
}
?>